import axios from 'axios'

const users = {
    login(data) {
        return axios({
            url: '/admin/login',
            method: 'POST',
            data
        })
    },
    getUsers(params) {
        return axios({
            url: "/admin/getAllAdmins",
            params
        })
    },
    addAdmins(data) {
        return axios({
            url: "/admin/addAdmins",
            method: "POST",
            data
        })
    },
    delAdmins(data) {
        return axios({
            url: "/admin/delAdmins",
            method: "POST",
            data
        })
    }
}

export default users